home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VMR / VMRMix / VMRMixDlg.h < prev   
Encoding:
C/C++ Source or Header  |  2001-10-08  |  2.7 KB  |  92 lines

  1. //------------------------------------------------------------------------------
  2. // File: VMRMixDlg.h
  3. //
  4. // Desc: DirectShow sample code
  5. //       Headers and class description for the settings dialog
  6. //
  7. // Copyright (c) 2000-2001 Microsoft Corporation.  All rights reserved.
  8. //------------------------------------------------------------------------------
  9.  
  10. #if !defined(AFX_VMRMixDLG_H__023F795A_822F_482F_8EC9_00EC8D8AA54F__INCLUDED_)
  11. #define AFX_VMRMixDLG_H__023F795A_822F_482F_8EC9_00EC8D8AA54F__INCLUDED_
  12.  
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CVMRMixDlg dialog
  19.  
  20. class CVMRMixDlg : public CDialog
  21. {
  22. // Construction
  23. public:
  24.     HRESULT RunDemonstration();
  25.     bool GetMediaSettings();
  26.     bool IsFullScreen(){ return m_bFullScreen;};
  27.     bool IsBitmapToUse(){ return m_bUseBitmap;};
  28.     CVMRMixDlg(CWnd* pParent = NULL);   // standard constructor
  29.  
  30.     typedef enum eState
  31.     {
  32.         eStop,
  33.         ePlay
  34.     } eState;
  35.  
  36.     CMediaList m_MediaList;
  37.  
  38. // Dialog Data
  39.     //{{AFX_DATA(CVMRMixDlg)
  40.     enum { IDD = IDD_VMRMIX_DIALOG };
  41.     CButton m_chkFullScreen;
  42.     CButton m_chkBitmap;
  43.     CSliderCtrl m_Slider;
  44.     CButton m_btnOK;
  45.     CButton m_btnStop;
  46.     CButton m_btnPlay;
  47.     CButton m_btnPause;
  48.     //}}AFX_DATA
  49.  
  50.     // ClassWizard generated virtual function overrides
  51.     //{{AFX_VIRTUAL(CVMRMixDlg)
  52.     protected:
  53.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  54.     virtual void PostNcDestroy();
  55.     //}}AFX_VIRTUAL
  56.  
  57.     bool SetNumberOfStreams( int n);
  58.     bool SwitchStateTo( eState eNewState);
  59.  
  60. // Implementation
  61. protected:
  62.     HICON m_hIcon;
  63.  
  64.     // Generated message map functions
  65.     //{{AFX_MSG(CVMRMixDlg)
  66.     virtual BOOL OnInitDialog();
  67.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  68.     afx_msg void OnPaint();
  69.     afx_msg HCURSOR OnQueryDragIcon();
  70.     afx_msg void OnSize(UINT nType, int cx, int cy);
  71.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  72.     afx_msg void OnButtonPlay();
  73.     afx_msg void SelectFolder();
  74.     afx_msg void OnReleasedcaptureSlider(NMHDR* pNMHDR, LRESULT* pResult);
  75.     afx_msg void OnCheckApplybitmap();
  76.     afx_msg void OnCheckFullscreen();
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79. private:
  80.     bool m_bFullScreen;
  81.     bool m_bUseBitmap;
  82.     int m_nStreams;
  83.     eState m_eState;
  84.     char m_szFolder[MAX_PATH];
  85.     int m_nMaxSources;
  86. };
  87.  
  88. //{{AFX_INSERT_LOCATION}}
  89. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  90.  
  91. #endif // !defined(AFX_VMRMixDLG_H__023F795A_822F_482F_8EC9_00EC8D8AA54F__INCLUDED_)
  92.